﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MagDev.Foundation;

namespace SecondaryModuleTest
{
    class Program
    {
        static void Main(string[] args)
        {
            AppConfig.Helper acHelper = new AppConfig.Helper();
            acHelper.DisplayAppConfigEntries(new Program2AppConfig());
            Console.ReadKey();
        }
    }

    public class Program2AppConfig : AppConfig.Attributes
    {
        public const string Module = "Program2";

        /// <summary>
        /// Application Configuration for Logging Categories
        /// </summary>
        private const string LoggingCategoriesGroup = "Logging";
        private const string LoggingCategoriesKey = "Category";
        public enum LoggingCategories
        {

            [AppConfigModule(Module)]
            [AppConfigGroup(LoggingCategoriesGroup)]
            [AppConfigKey(LoggingCategoriesKey)]
            [AppConfigValue("Program 2 Core")]
            [AppConfigActive(true)]
            Core,
            [AppConfigModule(Module)]
            [AppConfigGroup(LoggingCategoriesGroup)]
            [AppConfigKey(LoggingCategoriesKey)]
            [AppConfigValue("Program 2 Features")]
            [AppConfigActive(true)]
            Features,
            [AppConfigModule(Module)]
            [AppConfigGroup(LoggingCategoriesGroup)]
            [AppConfigKey(LoggingCategoriesKey)]
            [AppConfigValue("Program 2 Standards")]
            [AppConfigActive(true)]
            Standards,
            [AppConfigModule(Module)]
            [AppConfigGroup(LoggingCategoriesGroup)]
            [AppConfigKey(LoggingCategoriesKey)]
            [AppConfigValue("Program 2 WebParts")]
            [AppConfigActive(true)]
            WebParts
        }
    }
}
